/* styles.css — updated to requested changes
   Replace all /assets/images/... placeholders with your real files.
*/
/* Import Google Font Jost */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

/* Apply Jost everywhere */
* {
  font-family: 'Jost', sans-serif !important;
}

/* HERO SECTION BACKGROUND */
#hero-section {
  position: relative;
  padding: 60px 0 90px;
  background-image: url('background.jpg');
  /* Update this path */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
  z-index: 1;
  overflow: hidden;
}

/* Make sure it behaves well on mobile */
@media (max-width: 768px) {
  #hero-section {
    background-attachment: scroll;
    background-position: center top;
  }
}

/* Hero Content Styling (basic) */
#hero-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  color: white;
  text-align: center;
}

#hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

#hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

#quote-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

#quote-form input,
#quote-form select,
#quote-form button {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
}

#quote-form button {
  background: rgb(0, 0, 0);
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

#quote-form button:hover {
  background: rgb(0, 0, 0);
}

/* PANDA PATCHWORK GRID */
#insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 30px auto;
  max-width: 1200px;
}

.insta-item {
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.insta-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease;
}

.insta-item:hover img {
  transform: scale(1.03);
}

/* Optional: Define grid behavior by screen size */
@media (max-width: 600px) {
  #insta-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  #insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  #insta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- variables ---------- */
:root {
  --max: 1180px;
  --accent: #000000;
  --accent-2: #000000;
  --muted: #6b6b6b;
  --text: #0b0b0b;
  --bg: #fbfbfb;
  --card: #fff;
  --radius: 14px;
  --ease: cubic-bezier(.2, .9, .3, 1);
  --shadow: 0 16px 40px rgba(10, 10, 10, 0.08);
}

/* base */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
html, body, * {
  font-family: 'Jost', sans-serif !important;
}

  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 140;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.035)
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0
}

.logo img {
  height: 48px
}

/* nav */
.main-nav {
  margin-left: 28px
}

.nav-list {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center
}

.nav-item a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  display: inline-block;
  transition: color 180ms var(--ease)
}

.nav-item a:hover {
  color: var(--text)
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 20px
}

/* mega-panel */
.mega-panel {
  position: absolute;
  left: 0;
  top: 100%;
  width: 760px;
  display: flex;
  gap: 18px;
  padding: 18px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 220ms var(--ease)
}

.nav-item.mega:hover .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0)
}

.mega-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.mega-image {
  width: 220px;
  flex-shrink: 0
}

.mega-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px
}

/* header actions */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700
}

.btn.primary {
  background: black;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(124, 27, 170, 0.12)
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text)
}

.btn.big {
  padding: 14px 22px
}

/* HERO with background */
.hero-with-bg {
  position: relative;
  padding: 56px 0 80px;
  background-image: url('background.jpg');
  /* replace */
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.hero-overlay {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(255, 255, 255, 0.05));
  pointer-events: none
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center
}

.hero-copy {
  padding: 14px
}

.hero-heading {
  font-family: "Jost";
  font-size: 44px;
  margin: 0 0 12px 0;
  font-weight: 800;
  color: #030306
}

.lead {
  color: var(--muted);
  max-width: 70%
}

.center {
  text-align: center
}

.mini-features {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 16px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 600;
  justify-content: center
}

/* HERO form card (right side) */
.hero-form-wrap {
  display: flex;
  justify-content: flex-end
}

.hero-form-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 300ms var(--ease)
}

.hero-form-card h3 {
  margin: 0 0 6px 0;
  font-family: "Jost"
}

.hero-form-card .muted {
  margin: 0 0 10px 0;
  color: var(--muted)
}

.compact-form {
  display: grid;
  gap: 10px
}

.compact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem
}

.compact-form input,
.compact-form select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem
}

.compact-form .form-actions {
  margin-top: 6px
}

.btn.full {
  width: 100%
}

/* small hover tilt on hero card */
.hero-form-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 40px 90px rgba(10, 10, 10, 0.12)
}

/* five star centered */
.five-star {
  padding: 36px 0
}

.section-title {
  font-family: "Jost";
  font-size: 28px;
  margin-bottom: 6px
}

.star-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-top: 12px
}

.star {
  width: 88px;
  height: 88px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 320ms var(--ease);
  transform-style: preserve-3d
}

.star img {
  width: 64px
}

.star:hover {
  transform: translateY(-16px) rotateX(8deg) rotateY(-8deg) scale(1.06);
  box-shadow: 0 46px 100px rgba(10, 10, 10, 0.14)
}

/* instagram grid flush (no gaps) */
.patchwork {
  align-content: center;
  padding: 28px 0
}

.instagram-grid.no-gap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0
}

.insta-item {
  display: block;
  overflow: hidden;
  position: relative
}

.insta-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 260ms var(--ease)
}

.insta-item:hover img {
  transform: scale(1.03)
}

.insta-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.12));
  opacity: 0;
  transition: opacity 220ms var(--ease)
}

.insta-item:hover::after {
  opacity: 1
}

/* panda promise */
.panda-promise {
  padding: 36px 0
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.promise-card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 320ms var(--ease)

}
.promise-card {
  color: white;
  background-color: black;
}

.promise-card:hover {
  transform: translateY(-10px) rotateX(6deg)
}

/* samples (hover popout + purple learn more) */
.samples {
  padding: 36px 0
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.sample {
  cursor: pointer
}

.sample-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 320ms var(--ease)
}

.sample-frame img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover
}

.sample-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px
}

.sample .learn {
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.06);
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 260ms var(--ease)
}

.sample:hover .sample-frame {
  transform: translateY(-14px) scale(1.03)
}

.sample:hover .learn {
  background:black;
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px)
}

/* patch quest */
.patch-quest {
  padding: 36px 0;
  text-align: center
}

.quest-steps {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 16px
}

.step {
  background: #000000;
  color: white;
  border-radius: 12px;
  padding: 16px;
  width: 220px;
  box-shadow: var(--shadow);
  transition: transform 320ms var(--ease)
}

.step:hover {
  transform: translateY(-8px)
}

.num {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 10px
}

/* FAQ */
.faq {
  padding: 36px 0
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.faq-item {
  background-color: black;
  color: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow)
  
}

.faq-item h4 {
  margin: 0 0 8px
}

/* CTA */
.cta {
  padding: 40px 0
}

.cta-inner {
  background: linear-gradient(90deg, #fff6ff, #f3f0ff);
  padding: 22px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow)
}

/* footer & big animations */
.site-footer {
  color: white;
  background-color: black;
  padding: 34px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 260px 240px;
  gap: 18px;
  align-items: start
}

.footer-grid img {
  height: 42px
}

/* decorative animated orbs in footer */
.footer-anim {
  position: absolute;
  right: 10%;
  bottom: 12%;
  pointer-events: none
}

.orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.12;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: center;
  animation: floatOrb 6s ease-in-out infinite
}

.orb-1 {
  animation-delay: 0s
}

.orb-2 {
  transform: scale(.7);
  margin-left: -20px;
  animation-delay: 2s
}

.orb-3 {
  transform: scale(.4);
  margin-left: -60px;
  animation-delay: 4s
}

@keyframes floatOrb {
  0% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-16px)
  }

  100% {
    transform: translateY(0)
  }
}

/* footer link hover sparkle */
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms var(--ease)
}

.site-footer a:hover {
  color: var(--accent)
}

/* small screens */
@media (max-width:1024px) {
  .hero-grid {
    grid-template-columns: 1fr 360px
  }

  .samples-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .promise-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .instagram-grid.no-gap {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:768px) {
  .nav-list {
    display: none
  }

  .main-nav.open .nav-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 72px;
    padding: 20px;
    gap: 16px
  }

  .nav-toggle {
    display: block
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0
  }

  .hero-form-wrap {
    order: 2
  }

  .hero-form-card {
    max-width: 100%
  }

  .instagram-grid.no-gap {
    grid-template-columns: repeat(2, 1fr)
  }

  .samples-grid {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }
}

/* focus accessibility */
a:focus,
input:focus,
button:focus {
  outline: 3px solid rgba(188, 19, 254, 0.12);
  outline-offset: 3px
}

/* Improved responsiveness and edge fixes */

/* HERO heading readability on mobile */
@media (max-width: 540px) {
  .hero-heading {
    font-size: 30px;
    text-align: center;
  }

  .lead {
    font-size: 16px;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .mini-features {
    flex-direction: column;
    align-items: center;
  }

  .compact-form input,
  .compact-form select {
    font-size: 16px;
  }
}

/* Adjust mega menu position to avoid overflow */
.nav-item.mega {
  position: relative;
}

.mega-panel {
  width: 95vw;
  max-width: 760px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 100;
}

/* Mobile nav slide from top (cleaner experience) */
@media (max-width: 768px) {
  .main-nav.open .nav-list {
    top: 0;
    bottom: 0;
    left: 0;
    width: 75%;
    max-width: 320px;
    background: #fff;
    z-index: 1000;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
    animation: slideNav 320ms ease forwards;
  }

  @keyframes slideNav {
    from {
      transform: translateX(-100%);
    }

    to {
      transform: translateX(0%);
    }
  }

  .main-nav::after {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 75%;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.6);
    z-index: 999;
  }
}

/* Buttons on small screens */
@media (max-width: 420px) {
  .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .btn.big {
    font-size: 15px;
    padding: 12px 18px;
  }

  .sample-meta h4 {
    font-size: 15px;
  }

  .promise-card h3 {
    font-size: 16px;
  }

  .step h4 {
    font-size: 16px;
  }
}

/* Footer image resizing for narrow screens */
@media (max-width: 400px) {
  .footer-grid img {
    height: 32px;
  }
}